package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障管理对象 sys_fault
 *
 * @author ruoyi
 * @date 2023-12-05
 */
public class SysFault extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障id */
    private Long id;

    /** 风场id */
    @Excel(name = "风场id")
    private Long windId;

    /** 机组id */
    @Excel(name = "机组id")
    private Long setId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 故障名称 */
    @Excel(name = "故障名称")
    private String faultName;

    /** 故障分类(1机械故障;2电器故障;3环境故障;4软件故障) */
    @Excel(name = "故障分类(1机械故障;2电器故障;3环境故障;4软件故障)")
    private String faultType;

    /** 故障代码 */
    @Excel(name = "故障代码")
    private String faultCode;

    /** 负责人 */
    @Excel(name = "负责人")
    private String header;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String faultContent;

    /** 故障报出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障报出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date faultDate;

    /** 开始处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dealDate;

    /** 维护停机时间 */
    @Excel(name = "维护停机时间")
    private Long stopDate;

    /** 复位运行时间 */
    @Excel(name = "复位运行时间")
    private Long operateDate;

    /** 故障位置一级 */
    @Excel(name = "故障位置一级")
    private String position1;

    /** 故障位置二级 */
    @Excel(name = "故障位置二级")
    private String position2;

    /** 故障位置三级 */
    @Excel(name = "故障位置三级")
    private String position3;

    /** 排查项目 */
    @Excel(name = "排查项目")
    private String checkItem;

    /** 故障原因 */
    @Excel(name = "故障原因")
    private String faultReason;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 维修管理信息 */
    private List<SysRepairs> sysRepairsList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWindId(Long windId)
    {
        this.windId = windId;
    }

    public Long getWindId()
    {
        return windId;
    }
    public void setSetId(Long setId)
    {
        this.setId = setId;
    }

    public Long getSetId()
    {
        return setId;
    }
    public void setEquipmentId(Long equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId()
    {
        return equipmentId;
    }
    public void setFaultName(String faultName)
    {
        this.faultName = faultName;
    }

    public String getFaultName()
    {
        return faultName;
    }
    public void setFaultType(String faultType)
    {
        this.faultType = faultType;
    }

    public String getFaultType()
    {
        return faultType;
    }
    public void setFaultCode(String faultCode)
    {
        this.faultCode = faultCode;
    }

    public String getFaultCode()
    {
        return faultCode;
    }
    public void setHeader(String header)
    {
        this.header = header;
    }

    public String getHeader()
    {
        return header;
    }
    public void setFaultContent(String faultContent)
    {
        this.faultContent = faultContent;
    }

    public String getFaultContent()
    {
        return faultContent;
    }
    public void setFaultDate(Date faultDate)
    {
        this.faultDate = faultDate;
    }

    public Date getFaultDate()
    {
        return faultDate;
    }
    public void setDealDate(Date dealDate)
    {
        this.dealDate = dealDate;
    }

    public Date getDealDate()
    {
        return dealDate;
    }
    public void setStopDate(Long stopDate)
    {
        this.stopDate = stopDate;
    }

    public Long getStopDate()
    {
        return stopDate;
    }
    public void setOperateDate(Long operateDate)
    {
        this.operateDate = operateDate;
    }

    public Long getOperateDate()
    {
        return operateDate;
    }
    public void setPosition1(String position1)
    {
        this.position1 = position1;
    }

    public String getPosition1()
    {
        return position1;
    }
    public void setPosition2(String position2)
    {
        this.position2 = position2;
    }

    public String getPosition2()
    {
        return position2;
    }
    public void setPosition3(String position3)
    {
        this.position3 = position3;
    }

    public String getPosition3()
    {
        return position3;
    }
    public void setCheckItem(String checkItem)
    {
        this.checkItem = checkItem;
    }

    public String getCheckItem()
    {
        return checkItem;
    }
    public void setFaultReason(String faultReason)
    {
        this.faultReason = faultReason;
    }

    public String getFaultReason()
    {
        return faultReason;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public List<SysRepairs> getSysRepairsList()
    {
        return sysRepairsList;
    }

    public void setSysRepairsList(List<SysRepairs> sysRepairsList)
    {
        this.sysRepairsList = sysRepairsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("windId", getWindId())
                .append("setId", getSetId())
                .append("equipmentId", getEquipmentId())
                .append("faultName", getFaultName())
                .append("faultType", getFaultType())
                .append("faultCode", getFaultCode())
                .append("header", getHeader())
                .append("faultContent", getFaultContent())
                .append("faultDate", getFaultDate())
                .append("dealDate", getDealDate())
                .append("stopDate", getStopDate())
                .append("operateDate", getOperateDate())
                .append("position1", getPosition1())
                .append("position2", getPosition2())
                .append("position3", getPosition3())
                .append("checkItem", getCheckItem())
                .append("faultReason", getFaultReason())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("sysRepairsList", getSysRepairsList())
                .toString();
    }
}
